<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<title>封条管理及验证系统--个人信息查看</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/comm.jsp"%>
		<style type="text/css">
<!--
fieldset {
	padding: 10px;
	margin: 10px;
	width: 270px;
	color: #333;
}

legend {
	color: #06c;
	font-weight: 600;
}
-->
</style>
	<script>
	function initPage(){
	  var selcountry=document.getElementById("userInfo.country").value;   		
   	  if(selcountry=="HK"||selcountry=="CN"||selcountry=="TW"){
   	  	//中国或香港,显示手机、中文名等
   	  	document.getElementById("tr_zhname").style.display="block";
   	  	if(selcountry=="CN")
   	  	  document.getElementById("tr_mobile").style.display="block";
   	  	else
   	  	  document.getElementById("tr_mobile").style.display="none";
   	  }else{
   	  	document.getElementById("tr_zhname").style.display="none";
   	  	document.getElementById("tr_mobile").style.display="none";
   	  }
	}
</script>
	<body leftmargin="0" topmargin="0" marginheight="0"
		onload="initPage();">
		<s:form name="formpage" action="userInfo_view" namespace="/">
			<s:token>
			</s:token>
			<div align="center">
				<s:hidden id="hdfId" name="userInfo.id" value="%{#request.userInfo.id}" />
				<s:hidden name="userInfo.country" value="%{#request.userInfo.country}" />
				<%@ include file="/messages.jsp"%>
				<table align="center" width="650">
					<tr>
						<td align="right" width="120">
							账户代码:
						</td>
						<td>
							${userInfo.userId }
						</td>
					</tr>
					<tr id="tr_zhname">
						<td align="right">
							姓名:
						</td>
						<td>
							${userInfo.chineseName }
						</td>
					</tr>
					<!-- 
					<tr>
						<td align="right">
							英文名:
						</td>
						<td>
							${userInfo.firstName }&nbsp;${userInfo.lastName }
						</td>
					</tr>
					 -->
					<tr>
						<td align="right">
							性别:
						</td>
						<td>
							<s:if test="0==#request.userInfo.sex ">
								女
							</s:if>
							<s:elseif test="1==#request.userInfo.sex ">
								男
							</s:elseif>
							<s:elseif test="2==#request.userInfo.sex ">
								保密
							</s:elseif>
						</td>
					</tr>
					
					<s:if test="#request.companyId != #request.userInfo.deptId ">
					<tr>
						<td align="right">
							所属部门:
						</td>
						<td>
							<s:property value="convertDeptId(#request.userInfo.deptId)" />
						</td>
					</tr>
					</s:if>

					<tr>
						<td align="right">
							账户级别:
						</td>
						<td>
							<s:if test="1==#request.userInfo.userRole">
								系统管理员
							</s:if>
							<s:elseif test="2==#request.userInfo.userRole">
								部门管理员
							</s:elseif>
							<s:elseif test="3==#request.userInfo.userRole">
								操作员
							</s:elseif>
						</td>
					</tr>

					<tr>
						<td align="right">
							状态:
						</td>
						<td>
							<s:if test='"1"==#request.userInfo.status'>
								正常
							</s:if>
							<s:elseif test='"2"==#request.userInfo.status'>
								冻结
							</s:elseif>
							<s:elseif test='"3"==#request.userInfo.status'>
								已删除
							</s:elseif>
						</td>
					</tr>

					<tr id="tr_mobile">
						<td align="right">
							手机:
						</td>
						<td>
							${userInfo.cellphone }
						</td>
					</tr>

					<tr>
						<td align="right">
							固定电话:
						</td>
						<td>
							${userInfo.countryCode }-${userInfo.regionCode
							}-${userInfo.telephone }
						</td>
					</tr>

					<tr>
						<td align="right">
							Email地址:
						</td>
						<td>
							${userInfo.email }
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<input type="button" class="button" id="resets" value=" 返 回 " onclick="javascript:history.go(-1)"/>
						</td>
					</tr>
				</table>
			</div>
		</s:form>
	</body>
</html>